package com.gmadmin.vo;

import io.swagger.annotations.ApiModelProperty;

import java.util.List;

public class PageVo<T> {

    @ApiModelProperty(value = "当前分页数据")
    private List<T> items;


    @ApiModelProperty(value = "总数")
    private Long total;

    public PageVo(List<T> items, long total) {
        this.items = items;
        this.total = total;
    }

    public PageVo() {
    }

    public List<T> getItems() {
        return items;
    }

    public void setItems(List<T> items) {
        this.items = items;
    }

    public Long getTotal() {
        return total;
    }

    public void setTotal(Long total) {
        this.total = total;
    }
}
